﻿using PMP.Core.Enums;
using SqlSugar;

namespace PMP.Core.Entities;

/// <summary>
/// 人员提级
/// </summary>
public class TbAccountUpgrade : BaseEntity
{
    /// <summary>
    /// 被提级人id
    /// </summary>
    public int AccountId { get; set; }
    /// <summary>
    /// 被提级人姓名
    /// </summary>
    public string AccountName { get; set; } = string.Empty;
    /// <summary>
    /// 进行审批的操作者id
    /// </summary>
    public int OperatorId { get; set; }
    /// <summary>
    /// 进行审批的操作者姓名
    /// </summary>
    public string OperatorName { get; set; } = string.Empty;
    
    /// <summary>
    /// 提级原因
    /// </summary>
    [SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string Reason { get; set; } = string.Empty;
    /// <summary>
    /// 目标等级
    /// </summary>
    public EnumUserLevel UpgradeLevel { get; set; }
    /// <summary>
    /// 是否同意
    /// </summary>
    public bool? IsAgree { get; set; }

}